function ok = verifica aparteneta( x, xm)
%	Functia care verifica daca xm se afla in x
%       intoarce 1, daca am gasit in vectorul x si 0 altfel.

	ok = 0;
	n = length( x);
	for i = 1:n
		if( xm == x(i))
			ok = 1;
		endif
	endfor
endfunction
